public class SalesTaxBean{
	// Two Attributes
	private double taxRate;
	private double amount;

	public SalesTaxBean(){ // Sample zero argument constructor
		setTaxRate("0");
		setAmount("0");
	}

	public double getTaxRate(){ // Tax Rate Getter
		return taxRate;
	}

	public void setTaxRate(String newTaxRate){ // Tax Rate Setter
		taxRate = Double.valueOf(newTaxRate).doubleValue()/100;
	}

	public double getAmount(){ // Getter for amount
		return amount;
	}

	public void setAmount(String newAmount){ // Setter for amount
		amount = Double.valueOf(newAmount).doubleValue();
	}

	public double getSalesTax(){ // Calculates the sales tax
		return amount * taxRate;
	}

	public double getTotal(){ // Calculates a total including tax
		return amount + (amount * taxRate);
	}
}

